<?php
/**
 * Created by JetBrains PhpStorm.
 * User: valera
 * Date: 8/14/11
 * Time: 5:17 PM
 * To change this template use File | Settings | File Templates.
 */
 
class Resource_Mysql {
    public function __construct() {
        $config = ZendX_Config_Manager::getInstance()->getConfig('mysql');
        $db = new Zend_Db_Adapter_Pdo_Mysql($config);
        Zend_Db_Table_Abstract::setDefaultAdapter($db);
        Zend_Registry::set('Zend_Db', $db);
    }
}